﻿/* 3. Write a program that finds the biggest of three integers using nested if statements. */

using System;

public class FindTheBiggest
{
    public static void Main()
    {
        int first, second, third;
        int biggest;

        Console.Write("First number = ");
        first = int.Parse(Console.ReadLine());
        Console.Write("Second number = ");
        second = int.Parse(Console.ReadLine());
        Console.Write("Third number = ");
        third = int.Parse(Console.ReadLine());
        Console.WriteLine("------------");

        if (first > second)
        {
            if (first > third)
                biggest = first;
            else
                biggest = third;
        }
        else
        {
            if (second > third)
                biggest = second;
            else
                biggest = third;
        }

        Console.WriteLine("The biggest number ot these is {0}.", biggest);
    }
}